import { Column, Entity } from "typeorm";

@Entity("sys_depart_permission", { schema: "workflow" })
export class SysDepartPermission {
    @Column("char", { primary: true, name: "id", length: 36 })
    id: string;

    @Column("char", {
        name: "depart_id",
        nullable: true,
        comment: "部门id",
        length: 36,
    })
    departId: string | null;

    @Column("char", {
        name: "permission_id",
        nullable: true,
        comment: "权限id",
        length: 36,
    })
    permissionId: string | null;
}
